<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>员工管理系统 - 登录</h1>
<% if (request.getAttribute("error") != null) { %>
<p style="color:red;"><%= request.getAttribute("error") %></p>
<% } %>
<form action="login" method="post">
    用户名: <input type="text" name="username" required/><br/>
    密码: <input type="password" name="password" required/><br/>
    <button type="submit">登录</button>
</form>
<a href="register">注册</a>
</body>
</html>
